package com.mj.job.jobs;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.PersistJobDataAfterExecution;
import org.springframework.stereotype.Component;

import com.mj.job.AbstractJobBean;


/**
 * job示例
 * @author majie
 *
 */
@Component
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class DemoJob extends AbstractJobBean{

	@Override
	protected void executeInternal(JobExecutionContext arg0) throws JobExecutionException {
		System.out.println("---------------------这只是一个demo--------------------");
	}
	
}
